package cn.wolfcode.crm.query;

import lombok.Getter;
import lombok.Setter;

@Getter@Setter
public class QueryObject {

    private String keyword;

    private int rows;

    private int page;

    public int getStart(){
        return (page-1)*rows;
    }

    public String getKeyword(){
        return keyword ==null||keyword.trim().length()==0?null:keyword;
    }

}
